home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
cdity
/
MicroTM102.lha
/
MicroTM
/
MicroTM.doc
< prev
next >
Wrap
Text File
|
1994-03-15
|
6KB
|
169 lines
Micro ToolManager
Version 1.2
User DOC
BACKGROUND
I downloaded program called AutoAppMenu from the Aminet. It was some
sort of toolmenu manager and it was very small. But it didn't meet my
requirements in many points - it was not commodity, programs could not have
output, you could not run program by pressing a hotkey. In general, it was
very not-customizable. So I decided to write my own small toolmanager which
would be able to do averything like big tool-managers.
ABOUT
MictoTM is very small toolmenu manager. Provides running apps from
WorkBench's tool menu, by AppIcon or by pressing a hotkey. Can pass args to
app when ran from menu or icon.
PROGRAM CONFIGURATION
Program is customized by a configuration file, which is by default
"ENVARC:MicroTM.prefs". You can change the filename by the CFG tooltype.
The file is organized to lines. There is one application for every line (and
vice versa), except empty lines, which are ignored. Line format is following:
Position,Name,Menuitem,Icon,Execution string,hotkey
If you don't want to specify e.g. hotkey, even need not to specify last
comma:
Example of a separting item (w/out apostrophs): 'a,---------,'.
POSITION: Only one char is processed (none if this part is empty).
This field controls "priority" of the item and is used for sorting items in
menu. Item(s) with the least priority is/are at the top. Nothing means the
least priority. You will probably use numbers or letters, but all ASCII
chars are allowed (except LF and NULL :-).
NAME: Name of application used as name for menuitem/icon.
MENUITEM: Whether or not create menuitem. Only one char is processed.
If is this part empty or char is not '-', menuitem is created.
ICON: Icon specification. Path and name of icon (WITHOUT '.info' !!!).
The program is searching for icon in this order:
- Filename in icon specification (if not empty or doesn't begin with
special char - see below)
- Program name in execution string (if not disabled by special char -
- see below)
- Default App Icon
- Default Tool Icon
Possible special chars:
If first char of the ICON part is '-', app will not have AppIcon.
If this char is '"', program will have default icon. (Either DefApp or
DefTool if DefApp cannot be found.)
EXECUTION STRING: Tells which program to execute. This string can
contain following directives:
%% - The '%' char will be inserted here
%a - One argument will be inserted here
%n - Name of item will be inserted here
%r - Remaining arguments will be inserted here
If you tell program to insert argument(s) and none remain, nothing will
be inserted. Program does not insert spaces neither after nor before an
argument/name except when inserting remaining arguments. These will be
separated by spaces.
Example: (without apostrophs): ',UnLha,,,c:lha x %a ram:una/'
HOTKEY: This is standart commodity hotkey specification. E.g., CTRL
LCOMMAND HELP.
TOOLTYPES
Program recognizes two tooltypes:
CFG - Specifies configuration files.
CON - Specification of console window. This is only first part of the
console name. When starting program, it's name and the AUTO potion will be
added to it. Default is 'CON:////'.
INSTALATION
Just copy the program and icon to your WBStartup drawer. Then create
your own configuration file.
CONTROLLING THE PROGRAM
Disable/Enable works. When disabled, all menuitems and appicons are
removed and hotkeys are inactive
When pressed the "Show Interface" gadget, config file is re-loaded, so
you need not to quit and re-run the program after a change in the file.
ERRORS
Program has no error messages, just beeps when something went wrong. It
can be caused by:
When starting:
- Cannot find config file
- Another copy already running
- Totally out of memory etc.
When removing:
- All launched tasks didn't return yet
BUGS
When starting from CLI, no argument parsing is done. This is not a bug,
the program is designed to be run from WB. Possibility of running from cli
is implemented for debug purposes only.
No arguments are passed when running by pressing a hotkey. It's because
I don't know how to ask WB to send me a list of selected icons.
When the ICON part is empty and program to be executed contains space,
program will be unable to find it's icon.
PLANS FOR FUTURE
- Try to do argument passing by hotkey
- Add notification on the config file
- Repair bugs
- Keep it small
LEGAL STUFF
This product is freely distributable as long as the archive goes
unchanged. It can be included in any non-profit shareware or similar program
package without specific permission from the author.
This program is provided "AS IS" i.e., the author (me) is not
responsible for any hardware, software, physical or psychological damage or
data loss caused as a consequence of using this program.
AUTHOR
Feel free to send comments, bug reports, greetings, hardware (no nails,
please !-), cars, gold, dynamite, etc. to:
E-Mail: lemming@k332.feld.cvut.cz
S-Mail: Michal Kara
Krosenska 543
Praha 8
181 00
Czech Republic